package framework.history;

import java.util.ArrayList;

import framework.interfaces.ITransaction;
import framework.interfaces.ITransactionHistory;

public class TransactionHistory implements ITransactionHistory {

	private ArrayList<ITransaction> transactionHistory;

	public TransactionHistory() {
		transactionHistory = new ArrayList<ITransaction>();
	}

	@Override
	public void addTransactionHistory(ITransaction t) {
		transactionHistory.add(t);

	}

	@Override
	public ArrayList<ITransaction> getTransactionHistory() {
		return transactionHistory;
	}
}
